
var api = require('../../utils/api.js');
var util = require('../../utils/util.js');
var app = getApp();

Page({
  data: {
    pageList: [{ url: '../../assets/pb01.png', isNews: true }, { url: '../../assets/pb02.png', isNews: true }, { url: '../../assets/pb03.png', isNews: true }, { url: '../../assets/pb01.png', isNews: true }, { url: '../../assets/pb02.png', isNews: true }, { url: '../../assets/pb03.png', isNews: true }, { url: '../../assets/pb01.png', isNews: true }], 
    leaveMessageList: ['', '', '', '', ''], //留言列表
  
  },
  onLoad: function (options) {

  },
  onReady: function () {

  },
  onShow: function () {

  },
  bannerChangeHandle(e) { //banner替换的时候发生的事情
    this.setData({
      currentBanner: e.detail.current + 1
    })
  },
  openMenDian() { //打开弹框
    this.setData({
      isShowMenDian: true
    })
  },
  closeMenDianHandle() { //关闭弹框
    this.setData({
      isShowMenDian: false
    })
  }

})